package com.dys.arithmeticoperator;

/**
 * @className: com.dys.arithmeticoperator.RelationalOperator
 * @description: 关系运算符：> >= < <= == !=
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/06/15 下午9:49
 */
public class RelationalOperator {
    public static void main(String[] args) {
        testRelation();
    }

    public static void testRelation() {
        // 关系运算符的结果要么是true,要么是false
        System.out.println(1 > 2);// false
        System.out.println(1 >= 2);// false
        System.out.println(1 < 2);// true
        System.out.println(1 <= 2);// true
        System.out.println(1 == 2);// false
        System.out.println(1 != 2);// true
        System.out.println((1 < 2) != (2 == 3));// true
    }
}
